<!DOCTYPE html>
<html lang="en">
	<head>
			<meta charset="UTF-8">
			<meta name="viewport" content="width=device-width, initial-scale=1">
			<link href="css/style.css" rel="stylesheet">
		<title>html5新增的布局元素</title>
		{% load static%}
        <link rel="stylesheet" type="text/css" href="{% static 'css/7css.css' %}"/>
        <link rel="stylesheet" type="text/css" href="{% static 'css/2.css' %}"/>
        </script>
	</head>

	<body bgcolor="mediumblue"  background="{% static 'image/t01d61356d326bd0f99.jpg' %}">
        <!----头部-->
        {% include "html2.html" %}
        
        <div id="contatiner" style="height: 800px;border: 1px solid gray; margin-top: 5px" >
                <section>
                    <h2>博主内容<a style="float:right;" href="/login/an/">[返回]</a></h2>
                    {% for item in lstemp %}
                    <article>
                        文章标题：<h3  style="display:inline;">{{item.title}}</h3><br>
                        {% ifequal item.genre '1' %}
                        文章类型：<h3  style="display:inline;">技术类</h3>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal item.genre '2' %}
                        文章类型：<h3  style="display:inline;">生活类</h3>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% else %}
                        {% ifequal item.genre '3'  %}
                        文章类型：<h3  style="display:inline;">其它类</h3>&nbsp;&nbsp;&nbsp;&nbsp;
                        {% endifequal %}
                        {% endifequal %}
                        {% endifequal %}
                        发布者昵称：<h3 style="display:inline;">{{item.dept.name}}</h3>
                        
                        {% autoescape off %}
                        <h3>文章内容：{{item.artile}}</h3>
                        {% endautoescape %}

                    </article>
			        {% endfor %}
                </section>
                <!--侧边栏-->
                
                </div>
                </form>
            <p>
                {% if lstemp.has_previous %}
                <a href="?page={{ lstemp.previous_page_number }}">上一页</a>
                {% endif %}
        
                当前：{{ lstemp.number }} / {{ lstemp.paginator.num_pages }}
        
                {% if lstemp.has_next %}        
                <a href="?page={{ lstemp.next_page_number }}">下一页</a>
                {% endif %}
            </p>
            {% include "yewb.html" %}
            </body>        

</html>